Template Function cereal::save(Archive&, const Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>&)
Defined in File eigen_cerealisation.h
Function Documentation
-
template<class Archive, class _Scalar, int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
inline std::enable_if<traits::is_output_serializable<BinaryData<_Scalar>, Archive>::value, void>::type cereal::save(Archive &ar, const Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> &matrix) Serialise an Eigen::Matrix using cereal.
Note: Writes the binary data from Matrix::data(), so not sure what happens if a matrix ever has non-contiguous data (if that can ever happen with Eigen).
- Parameters
ar – [in] The archive to serialise to.
matrix – [in] The matrix to serialise.